﻿namespace = mod_nuclear_debug

mod_nuclear_debug.1 = {
	type = state_event
	hidden = yes
	orphan = yes
	immediate = {
		drop_nuke_one_effect = yes
	}
}

mod_nuclear_debug.2 = {
	type = state_event
	hidden = yes
	orphan = yes
	immediate = {
		kill_population_percent_in_state = {
			percent = 0.15
		}
		state_region = {
			add_devastation = 10
		}
	}
}

mod_nuclear_debug.3 = {
	type = state_event
	hidden = yes
	orphan = yes
	immediate = {
		random_list = {
		50 = {
			add_devastation = 10
		}
		75 = {
			add_devastation = 12.5
		}
		100 = {
			add_devastation = 15
		}
		100 = {
			add_devastation = 17.5
		}
		100 = {
			add_devastation = 20
		}
		75 = {
			add_devastation = 22.5
		}
		50 = {
			add_devastation = 25
		}
		}
	}
}

mod_nuclear_debug.4 = {
	type = country_event
	hidden = yes
	immediate = {
		change_variable = {
			name = warhead_current_stockpile
			add = 2000
		}
		change_variable = {
			name = strike_capacity_current_stockpile
			add = 1000
		}
	}
}


mod_nuclear_debug.5 = {
	type = state_event
	hidden = yes
	immediate = {
		state_ecological_collapse_effect = yes
	}
}

mod_nuclear_debug.6 = {
	type = state_event
	hidden = yes
	immediate = {
		# regional_ecological_collapse_effect = yes
		state_region = {
			strategic_region = {
				every_scope_state = {
			##
					state_ecological_collapse_effect = yes
				}
			}
		}

		trigger_event = mod_nuclear_ecological_disaster.10
	}
}

mod_nuclear_debug.7 = {
	type = state_event
	hidden = yes
	immediate = {
		global_ecological_collapse_effect = yes
	}
}

mod_nuclear_debug.8 = {
	type = state_event
	hidden = yes
	immediate = {
		random_scope_building = {
			remove_building = THIS
		}
	}
}

mod_nuclear_debug.9 = {
	type = state_event
	hidden = yes
	immediate = {
	random_list = {
		2 = {
			add_modifier = {
    				name = mod_nuclear_state_severe_fallout
				is_decaying = yes
   				months = 12
			}
		}
		2 = {
			add_modifier = {
    				name = mod_nuclear_state_infrastructure_collapse
				is_decaying = yes
   				months = 6
			}
		}
		2 = {
			add_modifier = {
    				name = mod_nuclear_state_rampant_anarchy
				is_decaying = yes
   				months = 6
			}
		}
		2 = {
			add_modifier = {
    				name = mod_nuclear_state_total_energy_grid_meltdown
				is_decaying = yes
   				months = 4
			}
		}
		2 = {
			kill_population_percent_in_state = {
				percent = 0.04
			}
			add_modifier = {
    				name = mod_nuclear_state_nuclear_famine
				is_decaying = yes
   				months = 4
			}
		}
		2 = {
			kill_population_percent_in_state = {
				percent = 0.02
			}
			add_modifier = {
    				name = mod_nuclear_state_mutated_flora_and_fauna
				is_decaying = yes
   				months = 24
			}
		}
	}
	}
}

mod_nuclear_debug.10 = {
	type = state_event
	hidden = yes
	immediate = {
		add_modifier = {
    			name = mod_nuclear_state_mutated_flora_and_fauna
			is_decaying = yes
   			months = 24
		}
	}
}

mod_nuclear_debug.20 = {
	type = state_event
	hidden = yes
	immediate = {
		owner = {
			random_primary_culture = {
				save_scope_as = cloned_culture
			}
		}
		create_pop = {
			pop_type = laborers
			culture = scope:cloned_culture
			size = 1000000
		}
	}
}

mod_nuclear_debug.21 = {
	type = country_event
	hidden = yes
	immediate = {
		random_primary_culture = {
			save_scope_as = cloned_culture
		}
		random_scope_state = {
			create_pop = {
				pop_type = laborers
				culture = scope:cloned_culture
				size = 1000000
			}	
		}
	}
}

